package com.xiaoshuidi.cloud.module.member.enums;


import com.xiaoshuidi.cloud.framework.common.exception.ErrorCode;

/**
 * Member 错误码枚举类
 * <p>
 * member 系统，使用 1-004-000-000 段
 */
public interface ErrorCodeConstants {

    // ========== 用户相关  1004001000============
    ErrorCode USER_NOT_EXISTS = new ErrorCode(1004001000, "用户不存在");
    ErrorCode USER_PASSWORD_FAILED = new ErrorCode(1004001001, "密码校验失败");

    ErrorCode USER_NAME_FAILED = new ErrorCode(1004001003, "请输入租户姓名");

    ErrorCode USER_UPDATE_MOBILE_VALID = new ErrorCode(1004001002, "用户没有修改权限");

    ErrorCode USER_UPDATE_MOBILE_ERROR = new ErrorCode(1004001003, "新旧手机号相同");
    ErrorCode USER_OLDMOBILE_NOT_EXIST = new ErrorCode(1004001004, "旧手机号不存在");

    // ========== AUTH 模块 1004003000 ==========
    ErrorCode AUTH_LOGIN_BAD_CREDENTIALS = new ErrorCode(1004003000, "登录失败，账号密码不正确");
    ErrorCode AUTH_LOGIN_USER_DISABLED = new ErrorCode(1004003001, "登录失败，账号被禁用");
    ErrorCode AUTH_TOKEN_EXPIRED = new ErrorCode(1004003004, "Token 已经过期");
    ErrorCode AUTH_THIRD_LOGIN_NOT_BIND = new ErrorCode(1004003005, "未绑定账号，需要进行绑定");
    ErrorCode AUTH_WEIXIN_MINI_APP_PHONE_CODE_ERROR = new ErrorCode(1004003006, "获得手机号失败");

    // ========== 用户收件地址 1004004000 ==========
    ErrorCode ADDRESS_NOT_EXISTS = new ErrorCode(1004004000, "用户收件地址不存在");

    ErrorCode TOPICS_NOT_EXISTS = new ErrorCode(500, "话题不存在");
    ErrorCode TOPICS_COMMENT_NOT_EXISTS = new ErrorCode(500, "话题参与数据不存在");

    // ========== 优惠券 1004005000 ==========
    ErrorCode COUPON_STATUS_UNAVAILABLE = new ErrorCode(1004005001, "优惠活动状态异常");
    ErrorCode COUPON_NOT_EXIST = new ErrorCode(1004005002, "优惠券不存在");

    ErrorCode COUPON_EXPIRE = new ErrorCode(1004005003, "优惠活动已结束");

    ErrorCode COUPON_NEED_OLD_PHONE = new ErrorCode(1004005004, "老带新优惠,需要老客户手机号");

    ErrorCode COUPON_DISABLE = new ErrorCode(1004005005, "优惠券已作废");

    ErrorCode COUPON_USED = new ErrorCode(1004005006, "优惠劵已使用");
    ErrorCode USER_PHONE_NOT_NULL = new ErrorCode(1004005007, "客户手机号不可为空");

    ErrorCode USER_ID_NOT_NULL = new ErrorCode(1004005008, "租客ID不能为空");
    ErrorCode COUPON_NOT_EDIT = new ErrorCode(1004005009, "此优惠活动状态不能编辑");

    ErrorCode PARAM_MISS = new ErrorCode(1004005010, "缺少参数");

    ErrorCode NO_USER = new ErrorCode(1004005011, "没有用户参加此问卷");
    ErrorCode MOBILE_EXIST = new ErrorCode(1004005012, "手机号已经注册");

    ErrorCode CODE_FILED = new ErrorCode(1004005013, "验证码校验失败");

    ErrorCode MESSAGE_NOT_EXIST = new ErrorCode(1004005014, "消息不存在");

    ErrorCode COUPON_NAME_EXIST = new ErrorCode(1004005015, "优惠券名称已存在");

    // ========== 安全检查 ==========
    ErrorCode SECURITY_CHECK_PROGRAM_NOT_EXISTS = new ErrorCode(1005005001, "安全检查项目不存在");

    ErrorCode SECURITY_CHECK_NOT_EXISTS = new ErrorCode(1005005002, "安全检查不存在");
    ErrorCode SECURITY_CHECK_RECTIFICATION_FILE_NOT_EXISTS = new ErrorCode(1005005003, "安全检查整改文件不存在");
    ErrorCode SECURITY_CHECK_IS_PLACE_ON_FILE = new ErrorCode(1005005004, "已归档，不可操作");

    ErrorCode SECURITY_CHECK_RECTIFICATION_ITEM_NOT_EXISTS = new ErrorCode(1005005005, "安全检查整改项不存在");
    ErrorCode SECURITY_CHECK_ITEM_EXISTS_PENDING = new ErrorCode(1005005003, "请先处理未完成的整改项");
    // ========== 话题 1006005000 ==========
    ErrorCode TOPIC_NOT_EXIST = new ErrorCode(1006005000, "话题不存在");
    ErrorCode TOPIC_STATUS_ERROR = new ErrorCode(1006005001, "话题状态设置错误");

    // ========== 话题 1007005000 ==========

    ErrorCode PROGRAM_NOT_EXIST = new ErrorCode(1007005000, "栏目不存在");

    // ========== 问卷 1008005000 ==========

    ErrorCode QUESTIONNAIRE_NOT_EXIST = new ErrorCode(1008005000, "问卷不存在");
    ErrorCode QUESTIONNAIR_REPEAT_ANSWER = new ErrorCode(1008005001, "问卷重复答题");

    // ========== 意见反馈 1009001000 ==========
    ErrorCode FEEDBACK_EXIST_ERROR = new ErrorCode(1009001000, "意见反馈不存在");



}
